GdkDisplay *display;
} GdkWaylandEventSource;
-static GList *event_sources = NULL;
-
static gboolean
gdk_event_source_prepare (GSource *base,
gint *timeout)
/* We have to add/remove the GPollFD if we want to update our
* poll event mask dynamically. Instead, let's just flush all
- * write on idle instead, which is what this amounts to. */
+ * write on idle instead, which is what this amounts to.
+ */
if (_gdk_event_queue_find_first (source->display) != NULL)
return TRUE;
static void
gdk_event_source_finalize (GSource *source)
{
- event_sources = g_list_remove (event_sources, source);
}
static GSourceFuncs wl_glib_source_funcs = {
g_source_set_can_recurse (source, TRUE);
g_source_attach (source, NULL);
- event_sources = g_list_prepend (event_sources, source);
-
return source;
}